package com.navinfo.data.esper.cep.linkid;

import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.UpdateListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LinkidPatternListener2 implements UpdateListener {
    public EventBean getLastEvent() {
        return lastEvent;
    }

    private EventBean lastEvent;

    public void update(EventBean[] newEvents, EventBean[] oldEvents) {

        if (newEvents != null) {
            EventBean event = newEvents[0];
            lastEvent = newEvents[0];
        }
    }

    private static final Logger log = LoggerFactory.getLogger(LinkidPatternListener2.class);
}
